//
// Created by 崔世强 on 2018/3/25.
// Copyright (c) 2018 Facebook. All rights reserved.
//

import Foundation

class MsgHandlerFactory {
    static let instance = MsgHandlerFactory()
    private init(){}

    func getHandler(_ msg:Message) -> MsgHandlerProtocol{
        switch msg.messageType {
            case .notice:
                return NoticeMsgHandler.instance
            default :
                return DefaultMsgHandler.instance
        }
    }
}
